<div class="row-fluid">
	<div class="span12">
		<div class="box">
			<div class="box-head">
				<h3>Login Security</h3>
			</div>
			<div class="box-content">                                         
			<?php if($view->error){?>
			<div class="alert alert-error"><?php echo $view->error;?></div>
			<?php } ?>                        
                            <form action="" class="form-horizontal validate" method="post">
                                <?php if($view->is2Steps) { ?>
                                <input type="hidden" name="removelogin" value="1" />
                                2 Steps verification is <span style="color: green;font-weight: bolder;">enabled</span>
                                <div class="form-actions">
                                    <button class="btn btn-danger btn-primary" type="submit">Remove 2-steps verification</button>							
                                </div>                                  
                                <?php } else { ?>                                
                                To activate a "2 Steps Verification" device, you must first install an application on your smartphone. You can find a list of <a href="2steps-verification.html" target="_blank">applications here</a>. After the application is installed, use information below to configure.
                                <br/><br/>
                                If your "2 Steps Verification" device supports scanning QR codes, scan the following image with your smartphone's camera.
                                <br/><br/>
                                <center>
                                    <img src="<?php echo $view->qrCodeUrl;?>" /><br/><br/>
                                </center>
                                <br/><br/>
                                Or use secret key below for manual configuration
                                <br/><br/>
                                <div class="control-group">
                                    <label for="basicround" class="control-label">Secret key</label>
                                    <div class="controls">
                                        <input readonly="readonly" type="text" placeholder="" name="secretkey" id="secretkey" value="<?php echo $view->secretKey;?>">
                                    </div>
                                </div>
                                                                
                                After the application is configured, anable the device for use with your account on Easter Calendar app by type the authentication code in textbox:
                                <br/><br/>
                                <div class="control-group">
                                    <label for="basicround" class="control-label">Authentication code</label>
                                    <div class="controls">
                                        <input class="required" type="text" placeholder="" name="data[code]" id="code" value="">
                                    </div>
                                </div>
                                
                                <div class="form-actions">
                                    <button class="btn btn-primary" type="submit">Activate 2-steps verification</button>							
                                </div>    
                                <?php } ?>
                            </form>
			</div>
		</div>
	</div>
</div>